package com.dawan.sbjy.Config;

import org.springframework.stereotype.Component;

    public class myExcep extends RuntimeException {
        private int code;
        private String message;

        public myExcep(int code, String message) {
            this.code = code;
            this.message = message;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        @Override
        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }


